<template>
  <div class="child1">
		<h3>子组件</h3>
    <h4>父给的车：{{che}}</h4>
    <button @click="$emit('update:che','奥拓')">点我修改车</button>
  </div>
</template>

<script>
  export default {
    name: 'Child',
    props:['che'],
  }
</script>

<style scoped>
	.child1{
		margin-top: 20px;
		background-color: skyblue;
		padding: 20px;
		margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
	}
</style>

